import { DatePicker, List} from 'antd-mobile';
import React, { Component } from 'react';
import { createForm } from 'rc-form';


 class Inbox extends Component {
  render() {
    const { getFieldProps } = this.props.form;

    return (
      <List>
        <List.Body>
          <DatePicker
            mode="datetime"
            {...getFieldProps('datetime')}
          >
            <List.Item
              arrow="horizontal"
              last
            >
              选择时间
            </List.Item>
          </DatePicker>
        </List.Body>
      </List>
    )
  }
}

export default createForm()(Inbox)